package com.gs.weather.entity;

import org.apache.ibatis.type.Alias;


/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Alias("DisasterInfo")
public class DisasterInfo {
    private Long id;
    private Long disasterProcessId;
    private Integer disasterTypeId;
    private Integer disasterSubtypeId;
    private Integer strengthId;
    private String startTime;
    private String endTime;
    private String causes;
    private String laterInfluence;
    private String description;
    private String xsAreaName;

    private String disasterTypeName;//每条灾情信息对应一个灾情类型
    private String disasterSubtypeName;//每条灾情信息对应一个灾情子类型
    private String strengthLevel;//每条灾情信息对应一个灾害强度

    public DisasterInfo() {
    }

    public DisasterInfo(Long id, Long disasterProcessId, Integer disasterTypeId, Integer disasterSubtypeId, Integer strengthId, String startTime, String endTime, String causes, String laterInfluence, String description, String xsAreaName) {
        this.id = id;
        this.disasterProcessId = disasterProcessId;
        this.disasterTypeId = disasterTypeId;
        this.disasterSubtypeId = disasterSubtypeId;
        this.strengthId = strengthId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.causes = causes;
        this.laterInfluence = laterInfluence;
        this.description = description;
        this.xsAreaName = xsAreaName;
    }

    public DisasterInfo(Long disasterProcessId, Integer disasterTypeId, Integer disasterSubtypeId, Integer strengthId, String startTime, String endTime, String causes, String laterInfluence, String description, String xsAreaName) {
        this.disasterProcessId = disasterProcessId;
        this.disasterTypeId = disasterTypeId;
        this.disasterSubtypeId = disasterSubtypeId;
        this.strengthId = strengthId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.causes = causes;
        this.laterInfluence = laterInfluence;
        this.description = description;
        this.xsAreaName = xsAreaName;
    }


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDisasterProcessId() {
        return disasterProcessId;
    }

    public void setDisasterProcessId(Long disasterProcessId) {
        this.disasterProcessId = disasterProcessId;
    }

    public Integer getDisasterTypeId() {
        return disasterTypeId;
    }

    public void setDisasterTypeId(Integer disasterTypeId) {
        this.disasterTypeId = disasterTypeId;
    }

    public Integer getDisasterSubtypeId() {
        return disasterSubtypeId;
    }

    public void setDisasterSubtypeId(Integer disasterSubtypeId) {
        this.disasterSubtypeId = disasterSubtypeId;
    }

    public Integer getStrengthId() {
        return strengthId;
    }

    public void setStrengthId(Integer strengthId) {
        this.strengthId = strengthId;
    }

    public String getCauses() {
        return causes;
    }

    public void setCauses(String causes) {
        this.causes = causes;
    }

    public String getLaterInfluence() {
        return laterInfluence;
    }

    public void setLaterInfluence(String laterInfluence) {
        this.laterInfluence = laterInfluence;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getXsAreaName() {
        return xsAreaName;
    }

    public void setXsAreaName(String xsAreaName) {
        this.xsAreaName = xsAreaName;
    }

    public String getDisasterTypeName() {
        return disasterTypeName;
    }

    public void setDisasterTypeName(String disasterTypeName) {
        this.disasterTypeName = disasterTypeName;
    }

    public String getDisasterSubtypeName() {
        return disasterSubtypeName;
    }

    public void setDisasterSubtypeName(String disasterSubtypeName) {
        this.disasterSubtypeName = disasterSubtypeName;
    }

    public String getStrengthLevel() {
        return strengthLevel;
    }

    public void setStrengthLevel(String strengthLevel) {
        this.strengthLevel = strengthLevel;
    }

    @Override
    public String toString() {
        return "DisasterInfo{" +
                "id=" + id +
                ", disasterProcessId=" + disasterProcessId +
                ", disasterTypeId=" + disasterTypeId +
                ", disasterSubtypeId=" + disasterSubtypeId +
                ", strengthId=" + strengthId +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", causes='" + causes + '\'' +
                ", laterInfluence='" + laterInfluence + '\'' +
                ", description='" + description + '\'' +
                ", xsAreaName='" + xsAreaName + '\'' +
                ", disasterTypeName='" + disasterTypeName + '\'' +
                ", disasterSubtypeName='" + disasterSubtypeName + '\'' +
                ", strengthLevel='" + strengthLevel + '\'' +
                '}';
    }
}
